/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ssi.mrms.dao;

import com.ssi.mrms.model.DataTableModel;
import com.ssi.mrms.model.RMcddtlModel;
import com.ssi.mrms.model.RMcdhdrModel;
import java.util.List;

/**
 *
 * @author jirapatjantsakool
 */
public interface ConciergeDepositDao {
    
    
    public List<RMcdhdrModel> findAll();
    
    public RMcdhdrModel findById(Integer id);
    
    public void create(RMcdhdrModel model) throws Exception;
    
    public boolean update(RMcdhdrModel model);
    
    public boolean delete(RMcdhdrModel model);
    
    public DataTableModel<RMcdhdrModel> findDataTable(RMcdhdrModel model, int iDisplayStart, int iDisplayLength);
    
    public RMcddtlModel findDetailById(Integer id);
    
    public List<RMcddtlModel> findDetailByCdhdocNo(String cdhdocno);
    
    public void create(RMcddtlModel model) throws Exception;
    
    public boolean update(RMcddtlModel model);
    
    public boolean delete(RMcddtlModel model);
    
}
